<!-- Box -->
<div class="box">  <!-- Box Head -->
    <div class="box-head">
        <h2 class="left">Current Articles</h2>
        <div class="right">
            <label>search articles</label>

            <input type="text" class="field small-field"/>
            <input type="submit" class="button" value="search"/>
        </div>
    </div>
    <!-- End Box Head -->

    <!-- Table -->
    <div class="table">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr>
                    <th width="13"><input type="checkbox" class="checkbox"/></th>
                    <th>Title</th>
                    <th>Category</th>
                    <th>Date</th>
                    <th>Added by</th>
                    <th width="110" class="ac">Content &nbsp;Control</th>
                </tr>

                <?php
                if ($news_list)
                {
                   foreach ($news_list as $row)
                   {
                 ?>
                <tr class="odd">
                    <td><input type="checkbox" class="checkbox"/></td>
                    <td><h3><a href="#"><?php echo $row->news_title; ?></a></h3></td>
                    <td><?php echo $row->category_id; ?></td>
                    <td><?php echo $row->posted_on; ?></td>
                    <td><a href="#"><?php echo $row->posted_by; ?></a></td>
                    <td><a href="<?php echo site_url("admin/news/delete/$row->id");?>" class="ico del">Delete</a>
                        &nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo site_url("admin/news/edit/$row->id");?>">Edit</a></td>
                </tr>
                <?php }} ?>               
                         
            </tbody></table>

        <!-- Pagging -->
        <div class="pagging">
            <div class="left">Showing 1-12 of 44</div>
            <div class="right">
                <a href="#">Previous</a>
                <a href="#">1</a>
                <a href="#">2</a>
                <a href="#">3</a>
                <a href="#">4</a>
                <a href="#">245</a>
                <span>...</span>
                <a href="#">Next</a>
                <a href="#">View all</a>
            </div>
        </div>
        <!-- End Pagging -->
    </div>
    <!-- Table -->
</div>

 <?php $this->load->view("admin/news_add"); ?>


